package com.pet_service.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.pet_service.enums.TFosterOrderStatus;
import lombok.Data;

/**
 * 寄养订单表
 * @TableName foster_order
 */
@TableName(value ="foster_order")
@Data
public class FosterOrder extends BaseEntity {
    /**
     * 订单ID
     */
    @TableField(value = "order_id")
    private Integer order_id;

    /**
     * 医院ID
     */
    @TableField(value = "hospital_id")
    private Integer hospital_id;

    /**
     * 宠物信息
     */
    @TableField(value = "pet_info")
    private String pet_info;

    /**
     * 开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")//因为时区差，所以要加上8时区
    @TableField(value = "foster_start_time")
    private Date foster_start_time;

    /**
     * 结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")//因为时区差，所以要加上8时区
    @TableField(value = "foster_end_time")
    private Date foster_end_time;

    /**
     * 寄养状态
     */
    @TableField(value = "status")
    private TFosterOrderStatus status;
}